package imgshare.mapper;

import imgshare.model.Notification;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NotificationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Notification record);

    int insertSelective(Notification record);

    Notification selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Notification record);

    int updateByPrimaryKey(Notification record);

    List<Notification> selectByReceiverId(Integer userId);

    int countUnreadNoticeByReceiverId(Integer receiverId);

    void updateByReceiverId(Integer receiverId);
}